<?php
/* @var $this HzxxController */
/* @var $model Hzxx */
/* @var $form CActiveForm */
?>

<div class="formbody">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'hzxx-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); 

CHtml::$beforeRequiredLabel = '*';
CHtml::$afterRequiredLabel  = '：';
CHtml::$requiredCss         = '';   
?>

  <div class="formtitle"><span>户主信息</span></div>
  <ul class="forminfo" >
    <li class="hang_3">
      <?php echo $form->labelEx($model,'usercode',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'usercode',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'usercode'); ?>
    </li>
    <li class="hang_3">
      <?php echo $form->labelEx($model,'username',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'username',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'username'); ?>
    </li>
    
    <li class="hang_3l">
      <?php echo $form->labelEx($model,'userID',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->textField($model,'userID',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'userID'); ?>
    </li>
    <li class="hang_3  bg_b">
      <?php echo $form->labelEx($model,'helpID',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'helpID',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'helpID'); ?>
    </li>
    <li class="hang_3 bg_b">
      <?php echo $form->labelEx($model,'sex',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->dropDownList($model,'sex', array(' '=>'请选择','男'=>'男','女'=>'女'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
    </li>
    <li class="hang_3l bg_b">
      <?php echo $form->labelEx($model,'age',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'age',array('size'=>15,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'age'); ?>
    人</li>
    <li class="hang_3">
     <?php echo $form->labelEx($model,'relation',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'relation',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'relation'); ?>
    </li>
    <li class="hang_3">
     <?php echo $form->labelEx($model,'helptype',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->dropDownList($model,'helptype', CHtml::listData(Userclass::model()->findAll(),'text','text'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
    </li>
    <li class="hang_3l">
     <?php echo $form->labelEx($model,'usertype',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->dropDownList($model,'usertype', CHtml::listData(Usertype::model()->findAll(),'text','text'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
    </li>
        <li class="hang_3  bg_b">
      <?php echo $form->labelEx($model,'monthMoney',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'monthMoney',array('size'=>18,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'monthMoney'); ?>
     </li>
    <li class="hang_3 bg_b">
      <?php echo $form->labelEx($model,'email',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php echo $form->textField($model,'email',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'email'); ?>
    </li>   
    <li class="hang_3l  bg_b">
      <label>&nbsp;</label>
      
    </li>
    <li class="hang_1">
      <label style="text-align:right; width:140px;"> &nbsp;所属在地区：</label>
      <?php
        $selectcss =array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);");
        $this->Widget('ext.WDjQuerycity.WDjQuerycity', array(
        'model'  => $model,
        'province' =>'region3',  //数据库字段province
        'city' =>'region4',  //数据库字段city
        'area' =>'region5',  //数据库字段area 
        'provinceValue'=>$model->region3,  // province 默认值
        'cityValue' =>$model->region4,  // city默认值
        'areaValue'=>$model->region5,  // area默认值
        'provinceOptions' => $selectcss, // province Html Options
        'cityOptions' => $selectcss, // city Html Options
        'areaOptions' => $selectcss // area Html Options
));
echo $form->hiddenField($model,'region1',array('size'=>20,'maxlength'=>20,'class'=>'dfinput','value'=>'辽宁省'));
echo $form->hiddenField($model,'region2',array('size'=>20,'maxlength'=>20,'class'=>'dfinput','value'=>'沈阳市'));
    ?>
    </li>
	<li class="hang_1 bg_b">
       <?php echo $form->labelEx($model,'hometown',array('style'=>"text-align:right;")); ?>&nbsp;
		 <?php echo $form->textField($model,'hometown',array('size'=>80,'maxlength'=>80,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'hometown'); ?>
    </li>
	<li class="hang_1 bg_b">
        <?php echo $form->labelEx($model,'address',array('style'=>"text-align:right;")); ?>&nbsp;
        <?php echo $form->textField($model,'address',array('size'=>80,'maxlength'=>80,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'address'); ?>
    </li>
  </ul>
  
  <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="50" colspan="2" align="center">
           <input type="image" name="ImageButton2" id="ImageButton2" src="<?php echo Yii::app()->request->baseUrl; ?>/images/tj.gif" class="qd" />
          &nbsp; &nbsp; &nbsp; &nbsp;
          <input type="image" name="ImageButton2" id="ImageButton2" src="<?php echo Yii::app()->request->baseUrl; ?>/images/cz.gif" class="qd1" /></td>
      </tr>
    </table>
  </div>
	<?php echo $form->errorSummary($model); ?>
<?php $this->endWidget(); ?>

</div><!-- form -->
